Skip to content

Conversation

@jyknight
Copy link
Member

When using parse_headers validation, rpc_server.h fails to build, since we don't expose any of the RPC deps in the Bazel build.

So at least for now, just exclude it.

@jyknight jyknight requested a review from lntue March 19, 2025 15:01
@llvmbot llvmbot added libc bazel "Peripheral" support tier build system: utils/bazel labels Mar 19, 2025
@llvmbot
Copy link
Member

llvmbot commented Mar 19, 2025

@llvm/pr-subscribers-libc

Author: James Y Knight (jyknight)

Changes

When using parse_headers validation, rpc_server.h fails to build, since we don't expose any of the RPC deps in the Bazel build.

So at least for now, just exclude it.


Full diff: https://github.com/llvm/llvm-project/pull/132046.diff

1 Files Affected:

  • (modified) utils/bazel/llvm-project-overlay/libc/BUILD.bazel (+4-1)
diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
index f3620186d776f..cae1202ec9f39 100644
--- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
@@ -1591,7 +1591,10 @@ libc_support_library(
 
 libc_support_library(
     name = "libc_external_common",
-    hdrs = glob(["shared/*.h"]),
+    hdrs = glob(
+        ["shared/*.h"],
+        exclude = ["shared/rpc-server.h"],
+    ),
     deps = [
         ":__support_common",
         ":__support_fputil_fp_bits",

Copy link
Contributor

@jhuber6 jhuber6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, it's not really intended to be used internally anyways.

When using parse_headers validation, rpc_server.h fails to build,
since we don't expose any of the RPC deps in the Bazel build.

So at least for now, just exclude it.
@jyknight jyknight merged commit 379a8d1 into llvm:main Mar 19, 2025
7 of 9 checks passed
@jyknight jyknight deleted the bazel-fix branch March 19, 2025 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bazel "Peripheral" support tier build system: utils/bazel libc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants